import request from '@/utils/request'

export const quota = (query) =>
  request({
    url: '/iot/quota/list',
    method: 'get',
    params: query
  })
export const addQuota = (data) =>
  request({
    url: '/iot/quota',
    method: 'post',
    data: data
  })
export const putQuota = (data) =>
  request({
    url: '/iot/quota',
    method: 'put',
    data: data
  })
export const delQuota = (id) =>
  request({
    url: `/iot/quota/${id}`,
    method: 'delete'
  })

export const gps = () =>
  request({
    url: '/iot/gps',
    method: 'get'
  })
export const addGps = (data) =>
  request({
    url: '/iot/gps',
    method: 'post',
    data: data
  })
export const putGps = (data) =>
  request({
    url: '/iot/gps',
    method: 'put',
    data: data
  })
